package com.power.project.model.vo.feignvo;


import com.power.project.model.Ww_depart;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 企业微信部门信息实体类
 */
@Data
@NoArgsConstructor
public class Depart {

    @ApiModelProperty(value = "corpid_departid")
    private String id;

    @ApiModelProperty(value = "部门id")
    private String departid;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "部门负责人的userid")
    private String department_leader;

    @ApiModelProperty(value = "父级部门")
    private String parentid;

    @ApiModelProperty(value = "企业id")
    private String corpid;

    public Depart(Ww_depart depart) {
        this.id = depart.getId().toString();
        this.departid = depart.getDepartid();
        this.name = depart.getName();
        this.department_leader = depart.getDepartment_leader();
        this.parentid = depart.getParentid();
        this.corpid = depart.getTenantid();
    }
}